<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: QcnSim/WeibullTrafficGenerator.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d21be12960473ba5c51e5f9beea3525e.html">QcnSim</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">WeibullTrafficGenerator.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_weibull_traffic_generator_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_weibull_traffic_generator_8h.html">WeibullTrafficGenerator.h</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#aff818cd3d48f88b26b4ff09d93a6a9f3">   38</a></span>&#160;<a class="code" href="class_weibull_traffic_generator.html#aff818cd3d48f88b26b4ff09d93a6a9f3">WeibullTrafficGenerator::WeibullTrafficGenerator</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, <a class="code" href="class_scheduler.html">Scheduler</a> &amp;scheduler, <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> eventType, std::shared_ptr&lt;Entity&gt; tokenContents,</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        std::shared_ptr&lt;Entity&gt; source, std::shared_ptr&lt;Entity&gt; destination, <span class="keywordtype">int</span> priority, <span class="keywordtype">double</span> scale, <span class="keywordtype">double</span> shape): <a class="code" href="class_traffic_generator.html">TrafficGenerator</a>(simulatorGlobals, scheduler, eventType, tokenContents,</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        source, destination, priority), scale(scale), shape(shape) {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;}</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#a4c2423ff1adef5a701d577787c9fb925">   57</a></span>&#160;<a class="code" href="class_weibull_traffic_generator.html#aff818cd3d48f88b26b4ff09d93a6a9f3">WeibullTrafficGenerator::WeibullTrafficGenerator</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, <a class="code" href="class_scheduler.html">Scheduler</a> &amp;scheduler, <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> eventType, std::shared_ptr&lt;Entity&gt; tokenContents,</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        std::shared_ptr&lt;Entity&gt; source, std::shared_ptr&lt;Entity&gt; destination, <span class="keywordtype">int</span> priority, <span class="keywordtype">double</span> scale, <span class="keywordtype">double</span> shape, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> seed): <a class="code" href="class_traffic_generator.html">TrafficGenerator</a>(simulatorGlobals, scheduler, eventType, tokenContents,</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        source, destination, priority, seed), scale(scale), shape(shape) {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">//this-&gt;tau = tau;</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="comment">//exponentialDistribution.;</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;}</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#a6868ea100781f5c771f4efe6fd405340">   73</a></span>&#160;std::shared_ptr&lt;Token&gt; <a class="code" href="class_weibull_traffic_generator.html#a6868ea100781f5c771f4efe6fd405340">WeibullTrafficGenerator::createInstanceTrafficEvent</a>() {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>();</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordflow">if</span> (token != NULL) {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(<a class="code" href="class_weibull_traffic_generator.html#a76065338266302092578af5fc8fad188">generateWeibullVariate</a>(), <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#a18c6f10331398720201ff0f529d5b038">   93</a></span>&#160;std::shared_ptr&lt;Token&gt; <a class="code" href="class_weibull_traffic_generator.html#a6868ea100781f5c771f4efe6fd405340">WeibullTrafficGenerator::createInstanceTrafficEvent</a>(std::shared_ptr&lt;Entity&gt; tokenContents) {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(tokenContents);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordflow">if</span> (token != NULL) {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(<a class="code" href="class_weibull_traffic_generator.html#a76065338266302092578af5fc8fad188">generateWeibullVariate</a>(), <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#a5cf42551379e8d1444942a66d9ef37cf">  113</a></span>&#160;std::shared_ptr&lt;Token&gt; <a class="code" href="class_weibull_traffic_generator.html#a6868ea100781f5c771f4efe6fd405340">WeibullTrafficGenerator::createInstanceTrafficEvent</a>(std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute) {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(explicitRoute);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordflow">if</span> (token != NULL) {</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(<a class="code" href="class_weibull_traffic_generator.html#a76065338266302092578af5fc8fad188">generateWeibullVariate</a>(), <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#ae158c6053b5493f05446fe844170d944">  134</a></span>&#160;std::shared_ptr&lt;Token&gt; <a class="code" href="class_weibull_traffic_generator.html#a6868ea100781f5c771f4efe6fd405340">WeibullTrafficGenerator::createInstanceTrafficEvent</a>(std::shared_ptr&lt;Entity&gt; tokenContents, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute) {</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(tokenContents, explicitRoute);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordflow">if</span> (token != NULL) {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(<a class="code" href="class_weibull_traffic_generator.html#a76065338266302092578af5fc8fad188">generateWeibullVariate</a>(), <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;}</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#a76065338266302092578af5fc8fad188">  152</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_weibull_traffic_generator.html#a76065338266302092578af5fc8fad188">WeibullTrafficGenerator::generateWeibullVariate</a>() {</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="comment">// Have not seen different behavior with or without static below, per unit testing.</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="comment">// The pseudorandom sequence seems to be unique per simulation, not per generator; the former is the expected behavior.</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    std::weibull_distribution&lt;double&gt; weibullGenerator(<a class="code" href="class_weibull_traffic_generator.html#aa13b055c900b17cdc95792294ab710e4">shape</a>, <a class="code" href="class_weibull_traffic_generator.html#ad5f5600a39f0bdd842ac561f87df7489">scale</a>); </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="keywordflow">return</span> weibullGenerator(<a class="code" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>.<a class="code" href="class_simulator_globals.html#a4249f51c03094b902a91514aae13fb92">getRandomNumberGeneratorEngineInstance</a>());</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;}</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#a0750fbfdc642f8431cf32e88a25d8f2d">  164</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_weibull_traffic_generator.html#a0750fbfdc642f8431cf32e88a25d8f2d">WeibullTrafficGenerator::getScale</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_weibull_traffic_generator.html#ad5f5600a39f0bdd842ac561f87df7489">scale</a>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;}</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="class_weibull_traffic_generator.html#a08e7808a1ac6d831e828b142bb6cfab8">  173</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_weibull_traffic_generator.html#a08e7808a1ac6d831e828b142bb6cfab8">WeibullTrafficGenerator::getShape</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_weibull_traffic_generator.html#aa13b055c900b17cdc95792294ab710e4">shape</a>;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;}</div>
<div class="ttc" id="_event_type_8h_html_a2628ea8d12e8b2563c32f05dc7fff6fa"><div class="ttname"><a href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a></div><div class="ttdeci">EventType</div><div class="ttdoc">EventType enum class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_type_8h_source.html#l00029">EventType.h:29</a></div></div>
<div class="ttc" id="class_scheduler_html"><div class="ttname"><a href="class_scheduler.html">Scheduler</a></div><div class="ttdoc">Scheduler class. </div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8h_source.html#l00058">Scheduler.h:58</a></div></div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a4249f51c03094b902a91514aae13fb92"><div class="ttname"><a href="class_simulator_globals.html#a4249f51c03094b902a91514aae13fb92">SimulatorGlobals::getRandomNumberGeneratorEngineInstance</a></div><div class="ttdeci">std::default_random_engine &amp; getRandomNumberGeneratorEngineInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00082">SimulatorGlobals.cpp:82</a></div></div>
<div class="ttc" id="class_weibull_traffic_generator_html_a0750fbfdc642f8431cf32e88a25d8f2d"><div class="ttname"><a href="class_weibull_traffic_generator.html#a0750fbfdc642f8431cf32e88a25d8f2d">WeibullTrafficGenerator::getScale</a></div><div class="ttdeci">double getScale() const </div><div class="ttdef"><b>Definition:</b> <a href="_weibull_traffic_generator_8cpp_source.html#l00164">WeibullTrafficGenerator.cpp:164</a></div></div>
<div class="ttc" id="class_weibull_traffic_generator_html_ad5f5600a39f0bdd842ac561f87df7489"><div class="ttname"><a href="class_weibull_traffic_generator.html#ad5f5600a39f0bdd842ac561f87df7489">WeibullTrafficGenerator::scale</a></div><div class="ttdeci">double scale</div><div class="ttdoc">Scale parameter of the Weibull distribution. </div><div class="ttdef"><b>Definition:</b> <a href="_weibull_traffic_generator_8h_source.html#l00036">WeibullTrafficGenerator.h:36</a></div></div>
<div class="ttc" id="class_weibull_traffic_generator_html_aa13b055c900b17cdc95792294ab710e4"><div class="ttname"><a href="class_weibull_traffic_generator.html#aa13b055c900b17cdc95792294ab710e4">WeibullTrafficGenerator::shape</a></div><div class="ttdeci">double shape</div><div class="ttdoc">Shape parameter of the Weibull distribution. </div><div class="ttdef"><b>Definition:</b> <a href="_weibull_traffic_generator_8h_source.html#l00037">WeibullTrafficGenerator.h:37</a></div></div>
<div class="ttc" id="class_weibull_traffic_generator_html_a08e7808a1ac6d831e828b142bb6cfab8"><div class="ttname"><a href="class_weibull_traffic_generator.html#a08e7808a1ac6d831e828b142bb6cfab8">WeibullTrafficGenerator::getShape</a></div><div class="ttdeci">double getShape() const </div><div class="ttdef"><b>Definition:</b> <a href="_weibull_traffic_generator_8cpp_source.html#l00173">WeibullTrafficGenerator.cpp:173</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="_weibull_traffic_generator_8h_html"><div class="ttname"><a href="_weibull_traffic_generator_8h.html">WeibullTrafficGenerator.h</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a42261ccf207f61a401473a106bc0bae3"><div class="ttname"><a href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">TrafficGenerator::simulatorGlobals</a></div><div class="ttdeci">SimulatorGlobals &amp; simulatorGlobals</div><div class="ttdoc">Reference to SimulatorGlobals object, to get random generator info. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00044">TrafficGenerator.h:44</a></div></div>
<div class="ttc" id="class_weibull_traffic_generator_html_a6868ea100781f5c771f4efe6fd405340"><div class="ttname"><a href="class_weibull_traffic_generator.html#a6868ea100781f5c771f4efe6fd405340">WeibullTrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent() override</div><div class="ttdef"><b>Definition:</b> <a href="_weibull_traffic_generator_8cpp_source.html#l00073">WeibullTrafficGenerator.cpp:73</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_weibull_traffic_generator_html_a76065338266302092578af5fc8fad188"><div class="ttname"><a href="class_weibull_traffic_generator.html#a76065338266302092578af5fc8fad188">WeibullTrafficGenerator::generateWeibullVariate</a></div><div class="ttdeci">double generateWeibullVariate()</div><div class="ttdef"><b>Definition:</b> <a href="_weibull_traffic_generator_8cpp_source.html#l00152">WeibullTrafficGenerator.cpp:152</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
<div class="ttc" id="class_simulator_globals_html"><div class="ttname"><a href="class_simulator_globals.html">SimulatorGlobals</a></div><div class="ttdoc">Simulator-scope variables and parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8h_source.html#l00044">SimulatorGlobals.h:44</a></div></div>
<div class="ttc" id="class_weibull_traffic_generator_html_aff818cd3d48f88b26b4ff09d93a6a9f3"><div class="ttname"><a href="class_weibull_traffic_generator.html#aff818cd3d48f88b26b4ff09d93a6a9f3">WeibullTrafficGenerator::WeibullTrafficGenerator</a></div><div class="ttdeci">WeibullTrafficGenerator(SimulatorGlobals &amp;simulatorGlobals, Scheduler &amp;scheduler, EventType eventType, std::shared_ptr&lt; Entity &gt; tokenContents, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination, int priority, double scale, double shape)</div><div class="ttdef"><b>Definition:</b> <a href="_weibull_traffic_generator_8cpp_source.html#l00038">WeibullTrafficGenerator.cpp:38</a></div></div>
<div class="ttc" id="class_traffic_generator_html"><div class="ttname"><a href="class_traffic_generator.html">TrafficGenerator</a></div><div class="ttdoc">TrafficGenerator parent class. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00041">TrafficGenerator.h:41</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 14 2013 11:18:21 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
